package shuzu.com;

import java.util.Arrays;

public class Fuxiti1 {

	public static void main(String[] args) {
		int[] arr = { 19, 28, 37, 46, 50 };
		System.out.println(Arrays.toString(arr));
		chang(arr);
	}

	private static void chang(int[] arr) {
		for (int j = 0; j < arr.length - 1; j++) {
			for (int i = 0; i < arr.length - 1; i++) {
				if (arr[i] < arr[i + 1]) {
					int a;
					a = arr[i + 1];
					arr[i + 1] = arr[i];
					arr[i] = a;

				}

			}
		}
		System.out.println(Arrays.toString(arr));
	}

}
